<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .avatarImg{
            width: 150px;
            height: 150px;
            margin: 0 auto;
            display: block;
            border-radius: 50%;
        }
    </style>
</head>

<body>
    <form action="get_img" enctype="multipart/form-data" method="post">
        <input type="file" name="pic">
        <input type="submit" value="表单提交">
        <!-- <input class="btn" type="button" value="ajax提交"> -->
    </form>
    <img class="avatarImg" src="" alt="">
   
</body>

</html>